<template>
  <div>
    
  </div>
</template>

<script>
import router from '@/router'

export default {
  name: 'Page404',
  computed: {
    message() {
     
    }
  },
  created(){
    var nameData = this.$store.state.permission.addRoutes[this.$store.state.permission.addRoutes.length-(localStorage.getItem("router")=="EARLY_MAPPING_RESULT_SECOND_AUDIT_FIRST_OPINION"||localStorage.getItem("router")=="EARLY_MAPPING_RESULT_SECOND_AUDIT_SECOND_OPINION"||localStorage.getItem("router")=="COMPLETING_RESULT_FIRST_AUDIT_FIRST_OPINION"||localStorage.getItem("router")=="COMPLETING_RESULT_FIRST_AUDIT_SECOND_OPINION"?3:2)];
    console.log(this.$store.state.permission,"this.$store.state.permission.")
    console.log(nameData,"当前路由")
    var src = "";
    if (nameData.children) {
      nameData.children.forEach(item=>{
        if(item.children){
          item.children.forEach(item1=>{
            if(item1.name==localStorage.getItem("router")){
              src = item1.path;
              console.log(this.$router,"this.$router")
              this.$router.push({path:src});
            }
          })
        }
      })
    }
    
  }
}
</script>
